package com.liao.service;

import com.liao.bean.Pay;
import com.liao.bean.result.PageResult;

public interface PayService {
    /**
     * 根据姓名模糊查询
     *
     * @param currentPage
     * @param pageSize
     * @param accountName
     * @return
     * @throws Exception
     */
    PageResult<Pay> queryPayListByPage(Integer currentPage, Integer pageSize, String accountName) throws Exception;

    /**
     * 删除
     *
     * @param payId
     * @throws Exception
     */
    void deletePayById(String payId) throws Exception;

    /**
     * 添加
     *
     * @param payAccount
     * @param accountName
     * @param operater
     * @param payMoney
     * @throws Exception
     */
    void addPay(String payAccount, String accountName, String operater, String payMoney) throws Exception;

    /**
     * 修改
     * @param payId
     * @param payAccount
     * @param accountName
     * @param operater
     * @param payMoney
     * @throws Exception
     */
    void updatePay(Integer payId, String payAccount, String accountName, String operater, String payMoney) throws Exception;
}
